﻿using DataModels.Enums.House;
using SqlSugar;

namespace DataModels.Entities.House
{
    [SugarTable("housingbasic")]
    public class HousingBasic
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 房产信息UUID
        /// </summary>
        public string PropertiesUUID { get; set; }
        /// <summary>
        /// 建筑面积（平方米）
        /// </summary>
        public decimal BuildingArea { get; set; }

        /// <summary>
        /// 套内面积（平方米）
        /// </summary>
        public decimal InnerArea { get; set; }

        /// <summary>
        /// 房屋用途
        /// </summary>
        public UsageType UsageType { get; set; }

        /// <summary>
        /// 房屋状态
        /// </summary>
        public HouseStatus Status { get; set; }

        /// <summary>
        /// 四格房屋id
        /// </summary>
        public int HouseId { get; set; }

        /// <summary>
        /// 四格楼层id
        /// </summary>
        public int Floor_id { get; set; }

        /// <summary>
        /// 所属小区ID
        /// </summary>
        public int OrganId { get; set; }

        /// <summary>
        /// 房号
        /// </summary>
        public string RoomNo { get; set; }

        /// jjj
        /// <summary>
        /// 四格_楼栋Id
        /// </summary>
        public int BuildId { get; set; }

        /// <summary>
        /// 四格_单元Id
        /// </summary>
        public int UnitId { get; set; }
    }
}
